package com.xgry.bpm.api.business.postfiles.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PostFiles")
public class PostFiles extends Model<PostFiles> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "PostFiles_id", type = IdType.AUTO)
    private Integer postfilesId;

    @TableField("PostFiles_single_person")
    private String postfilesSinglePerson;

    @TableField("PostFiles_single_person_id")
    private String postfilesSinglePersonId;

    @TableField("PostFiles_auditor")
    private String postfilesAuditor;

    @TableField("PostFiles_altered_person")
    private String postfilesAlteredPerson;

    @TableField("PostFiles_making_time")
    private LocalDateTime postfilesMakingTime;

    @TableField("PostFiles_audit_time")
    private LocalDateTime postfilesAuditTime;

    @TableField("PostFiles_change_time")
    private LocalDateTime postfilesChangeTime;

    @TableField("PostFiles_billDate")
    private LocalDateTime postfilesBilldate;

    @TableField("PostFiles_upstream_document_number")
    private String postfilesUpstreamDocumentNumber;

    @TableField("PostFiles_downstream_document_number")
    private String postfilesDownstreamDocumentNumber;

    @TableField("PostFiles_upstream_document_bank_number")
    private String postfilesUpstreamDocumentBankNumber;

    @TableField("PostFiles_downstream_document_bank_number")
    private String postfilesDownstreamDocumentBankNumber;

    private String parentLevel;

    @TableField("PostFiles_state")
    private String postfilesState;

    @TableField("PostFiles_name")
    private String postfilesName;

    @TableField("PostFiles_code")
    private String postfilesCode;

    @TableField("PostFiles_AffiliatedGroup")
    private String postfilesAffiliatedgroup;

    @TableField("PostFiles_AffiliatedCompany")
    private String postfilesAffiliatedcompany;

    @TableField("PostFiles_AffiliatedDepartments")
    private String postfilesAffiliateddepartments;

    @TableField("PostFiles_AffiliatedLevel")
    private String postfilesAffiliatedlevel;

    @TableField("PostFiles_Remarks")
    private String postfilesRemarks;

    @TableField("PostFiles_Outagedate")
    private LocalDateTime postfilesOutagedate;

    @TableField("GroupManagement_id")
    private String groupmanagementId;

    @TableField("CorporateManagement_id")
    private String corporatemanagementId;

    @TableField("DepartmentalManagement_id")
    private String departmentalmanagementId;

    @TableField("PostFiles_processInstanceId")
    private String postfilesProcessinstanceid;


    @Override
    protected Serializable pkVal() {
        return this.postfilesId;
    }

}
